package br.unb.mestrado.simulator.dao;

import java.util.List;

import br.unb.mestrado.simulator.util.SimulatorException;

public abstract class GenericDAO <T> {

	protected String tableName = null;
	protected static final String ID = "ID";
	
	public GenericDAO(String table) {
		this.tableName = table;
	}
	
	public abstract Integer add(T obj) throws SimulatorException;
	public abstract void update(T obj) throws SimulatorException;
	public abstract List<T> list() throws SimulatorException;
	public abstract T get(Integer id) throws SimulatorException;

	public abstract int remove(int id) throws SimulatorException ;
	
}
